import request from '@/utils/request'

export function getList(type) {
  return request({
    url: '/pp/categorize/list',
    method: 'get',
    params: { pageShow: false, type }
  })
}

export function add(data) {
  return request({
    url: '/pp/categorize/add',
    method: 'post',
    data
  })
}

export function del(ids) {
  return request({
    url: '/pp/categorize/delete',
    method: 'post',
    params: { ids }
  })
}

export function edite(data) {
  return request({
    url: '/pp/categorize/edite',
    method: 'post',
    data
  })
}

